package com.party.admin.task;

import com.party.core.service.commune.impl.CMemberIntegralBizService;
import com.party.core.service.cos.CosBizService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 社群会员商城积分刷新
 * Created by hqh
 *
 * @date 2020/05/06 0030
 * @time 15:25
 */

@Component(value = "QuartzCMemberMallIntegralRefresh")
public class QuartzCMemberMallIntegralRefresh {

    @Autowired
    private CMemberIntegralBizService cMemberIntegralBizService;

    protected static Logger logger = LoggerFactory.getLogger(QuartzCMemberMallIntegralRefresh.class);

    /**
     * 刷新社群会员商城积分刷新
     */
    public void refresh(){
        logger.info("刷新社群会员商城积分刷新定时任务启动");
        try {
            cMemberIntegralBizService.refreshCMemberIntegral(null);
        } catch (Exception e) {
            logger.debug("刷新社群会员商城积分刷新定时任务启动异常", e);
        }
    }
}
